// ==UserScript==
// @name        YE功能增强.00 - [Utils工具类集合]
// @description Utils 工具类
// @namespace   http://AsionTang.CN
// @copyright   2017+, AsionTang
// @author      AsionTang
// @version     250603.08.37.050
// @run-at      document-start
// @downloadURL https://gitee.com/AsionTang/52.ScriptLibrary/raw/master/YeJS/00.Utils.SuiShouJi.js
// @grant       none
// ==/UserScript==
var YE_IS_DEBUG = YE_IS_DEBUG || false;

/**
 * 拼接请求网址,打开到对应随手记界面让其记录.
 */
function saveRecord(url, category, account, price, time, memo, callBackOnlyGetUrl) {
    if (price == undefined) {
        var errorInfo = 'saveRecord 函数 price 参数有误:' + price;
        showToastAtTitle(errorInfo);
        console.error(errorInfo);
        return;
    }
    if (YE_IS_DEBUG)
        console.log("     url: " + url);

    url += category + ',';
    url += account + ',';
    url += price + ',';
    url += encodeURIComponent(time) + ',';
    url += encodeURIComponent(memo) + ',';

    if (YE_IS_DEBUG) {
        console.log("     url: " + url);
        console.log("category: " + category);
        console.log(" account: " + account);
        console.log("   price: " + price);
        console.log("    time: " + time);
        console.log("    memo: " + memo);
        return;
    }

    console.log(url);

    //当传递了仅仅需要获取URL的回调时,则不自动打开URL.
    if (callBackOnlyGetUrl) {
        callBackOnlyGetUrl(url);
        return;
    }

    if (typeof GM_openInTab !== 'undefined')
        GM_openInTab(url, {
            insert: false,
            active: false
        });
    else
        window.open(url);
}

/**
 * 记录收入记录
 */
function saveIncomeRecord(category, account, price, time, memo, callBackOnlyGetUrl) {
    var url = 'https://www.sui.com/tally/new.do?income#';
    saveRecord(url, category, account, price, time, memo, callBackOnlyGetUrl);
}

/**
 * 记录支出记录
 */
function savePayoutRecord(category, account, price, time, memo, callBackOnlyGetUrl) {
    var url = 'https://www.sui.com/tally/new.do?payout#';
    saveRecord(url, category, account, price, time, memo, callBackOnlyGetUrl);
}

/**
 * 记录转账记录
 */
function saveTransferRecord(category, account, price, time, memo, callBackOnlyGetUrl) {
    var url = 'https://www.sui.com/tally/new.do?transfer#';
    saveRecord(url, category, account, price, time, memo, callBackOnlyGetUrl);
}

/**
 * 判断给定名称里匹配哪个账户就返回对应的ID
 */
function getBestOutAccountByName(name) {
    var out_account;

    if (name.indexOf('交通') > -1 && name.indexOf('2490') > -1)
        //YE 沃尔玛
        out_account = '154469222205';
    else if (name.indexOf('招商') > -1) {
        if (name.indexOf('2307') > -1 || name.indexOf('8706') > -1)
            //DM 招商银行
            out_account = '4401499473';
        else
            //YE 招商银行
            out_account = '15442987765';
    } else if (name.indexOf('兴业') > -1 && name.indexOf('3106') > -1)
        //YE 兴业卡
        out_account = '2610793';
    else if (name.indexOf('代付') > -1 || (name.indexOf('交通') > -1 && name.indexOf('2877') > -1) || (name.indexOf('交通') > -1 && name.indexOf('1864') > -1))
        //DM 沃尔玛
        out_account = '242159702';
    else if (name.indexOf('余额宝') > -1)
        //YE 余额宝
        out_account = '244709340';
    else if (name.indexOf('花呗') > -1) {
        if (name.indexOf('冬梅') > -1)
            //DM 花呗
            out_account = '4716292197';
        else
            //YE 花呗
            out_account = '205059390245';
    } else if (name.indexOf('8527') > -1)
        //中国建设银行 (8527) YE 龙卡 信用卡
        out_account = '5134293831';
    else if (name.indexOf('6776') > -1 || name.indexOf('平安') > -1)
        //平安银行 (6776)
        out_account = '5443593951';
    else if (name.indexOf('9312') > -1 || name.indexOf('民生') > -1)
        //中国民生银行 (9312)
        out_account = '55275916328';
    else
        //YE 支付宝
        out_account = '15416986541';

    return out_account;
}

/**
 * 判断今日离谁的账单日最长,就用谁.
 */
function getBestOutAccountByTime(time) {
    var out_account;
    //取出今天日期
    var date = toNumber(time.substr(8, 2));
    if (date >= 20)
        //YE 沃尔玛 账单日20日
        out_account = '154469222205';
    else if (date >= 8)
        //DM 沃尔玛 账单日8日
        out_account = '242159702';
    else
        //20日-8日期间,还是 YE 沃尔玛
        out_account = '154469222205';
    return out_account;
}

/**
 * 获取当前日期里对应月份的最后一天的最后一秒
 */
function getTheLastSecondDateTimeOfMonth(time) {
    switch (time.substr(5, 2)) {
    case '01':
    case '03':
    case '05':
    case '07':
    case '08':
    case '10':
    case '12':
        time = time.substr(0, 8) + '31';
        break;
    case '02':
        time = time.substr(0, 8) + '28';
        break;
    default:
        time = time.substr(0, 8) + '30';
        break;
    }
    time += ' 23:59:59';
    return time;
}

/**
 * 从备注里猜测可能性最大的支出分类
 */
function getPayoutCategoryByGuess(memo) //
{
    var items = [{}//
    , //
    {
        id: '175369643909',
        name: '书刊',
        keys: ['绘本', '故事书', '绘本', '册', '', '', '']
    }//
    , //
    {
        id: '175669278084',
        name: '文具',
        keys: ['晨光', '笔', '', '', '', '', '']
    }//
    , //
    {
        id: '210549992',
        name: '保健品',
        keys: ['挪威小鱼', '', '', '', '', '', '']
    }//
    , //
    {
        id: '175369643668',
        name: '日用',
        keys: ['棉签', '牙膏', '片/包', '洗发水', '沐浴露', '香皂', '卫生巾', '胶', '抽纸', '纸巾', '湿巾']
    }//
    , //
    {
        id: '175369643269',
        name: '零食',
        keys: ['薯条', '锅巴', '薯片', '小鱼', '', '', '']
    }//
    , //
    {
        id: '175369643095',
        name: '早餐',
        keys: ['纯牛奶', '牛奶', '面包', '小口袋', '紫米', '早餐', '饼干', '代餐']
    }//
    , //
    {
        id: '175369643097',
        name: '主食',
        keys: ['大米', '杂粮', '', '', '', '', '']
    }//
    , //
    {
        id: '1756691226949',
        name: '护肤',
        keys: ['护手霜', '面膜', '补水', '保湿', '', '', '']
    }//
    ];

    //找到指定关键字对应的分类.
    for (var i = 1; i < items.length; i++) //
    {
        var item = items[i];
        for (var x = 0; x < item.keys.length; x++) //
        {
            var key = item.keys[x];
            if (key && key.length > 0 && memo.indexOf(key) > -1) //
            {
                console.log(item);
                return item.id;
            }
        }
    }

    //匹配不成功就是"分类有误",防止忘记修改
    return '3662790';
}

function getCategory(str) {
    for (var i = 0; i < Ye_CategoryMap.length; i++) {
        var c = Ye_CategoryMap[i];
        if (c.names.indexOf(str) > -1)
            return c.id;
    }
    return undefined;
}

function getAccount(str) {
    function checkIt(c, xx) {
        if (c.names.indexOf(xx) > -1)
            return true;
        if (c.names.indexOf(xx.replace('卡', '')) > -1)
            return true;
        return false;
    }
    for (var i = 0; i < window.Ye_AccountMap.length; i++) {
        var c = window.Ye_AccountMap[i];
        if (checkIt(c, str)//
        || checkIt(c, str.replace('也', 'YE'))//
        || checkIt(c, str.replace('冬梅', 'DM'))//
        || checkIt(c, str.toUpperCase().replace('YE', '也'))//
        || checkIt(c, str.toUpperCase().replace('DM', '冬梅')))
            return c.id;
    }
    return undefined;
}

(function() {
    if (location.href.indexOf('tally/new.do') == -1)
        return;
    //================================================================================
    console.log("999.在随手记 记账 界面,自动检查 帐号ID 与 分类ID 是否匹配! 不匹配时则提醒用户");
    //================================================================================
    window.Ye_999_setIntervalId = setInterval(function() {
        //document.onclick = document_onclick;
        document_onclick();
    }, 1000);
    //document.onclick = document_onclick;

    window.Ye_999_HadCheckSuccessCount = 0;

    function document_onclick(e) {
        var param = window.$param || unsafeWindow.$param;
        if (!param || !param.accountJson) {
            console.warn('999.页面尚未加载完毕!window.$param.accountJson为空')
            return;
        }
        console.log("999.有效性检查中" + window.Ye_999_HadCheckSuccessCount);

        //自动检查 分类ID 是否都有效！
        for (var i = 0; i < window.Ye_AccountMap.length; i++) {
            var c = window.Ye_AccountMap[i];
            if (!param.accountJson[c.id]) {
                alert('以下账户异常（需要检查00.Utils.SuiShouJi.JS里的账户映射关系!）：\n\n\n' + JSON.stringify(c));
                break;
            }
        }
        //自动检查 帐号ID 是否都有效！
        for (var i = 0; i < window.Ye_CategoryMap.length; i++) {
            var c = window.Ye_CategoryMap[i];
            if (!document.getElementById('ls-li-payout-' + c.id) && !document.getElementById('ls-li-income-' + c.id)) {
                alert('以下分类异常（需要检查00.Utils.SuiShouJi.JS里的分类映射关系!）：\n\n\n' + JSON.stringify(c));
                break;
            }
        }

        //成功检查5次后，就不需要再继续了！
        window.Ye_999_HadCheckSuccessCount++;
        if (window.Ye_999_HadCheckSuccessCount >= 5) {
            clearInterval(window.Ye_999_setIntervalId);
            console.log('999.检查结束!')
        }
    }
}
)();

//========================================================================
window.Ye_CategoryMap = [{
    "id": "175369643184",
    "names": ["肉","肉类"]
}, {
    "id": "175369643261",
    "names": ["菜", "蔬菜"]
}, {
    "id": "175369643107",
    "names": ["果品", "水果", "果"]
}, {
    "id": "175369643097",
    "names": ["主食"]
}, {
    "id": "175369643095",
    "names": ["早餐","乳制品"]
}, {
    "id": "175369643181",
    "names": ["午餐"]
}, {
    "id": "175369643345",
    "names": ["晚餐"]
}, {
    "id": "175369643262",
    "names": ["饮品", "饮料"]
}, {
    "id": "175369643269",
    "names": ["零食"]
}, {
    "id": "175369643266",
    "names": ["油盐酱醋","米面粮油","粮油调味"]
}, {
    "id": "337519289",
    "names": ["维修"]
}, {
    "id": "337519290",
    "names": ["护理"]
}, {
    "id": "210549758",
    "names": ["电费"]
}, {
    "id": "175369643507",
    "names": ["水费"]
}, {
    "id": "210549763",
    "names": ["燃气费", "燃气", "煤费", "煤气", "气费", "煤气费", "天然气费", "天然气"]
}, {
    "id": "175369643668",
    "names": ["日用"]
}, {
    "id": "175369643506",
    "names": ["房租"]
}, {
    "id": "175369643498",
    "names": ["话费"]
}, {
    "id": "175369643749",
    "names": ["饰品"]
}, {
    "id": "175369643752",
    "names": ["服饰"]
}, {
    "id": "175369643760",
    "names": ["家电"]
}, {
    "id": "175369643744",
    "names": ["家具"]
}, {
    "id": "175369644426",
    "names": ["网费"]
}, {
    "id": "175369643509",
    "names": ["家居其它"]
}, {
    "id": "20177960029",
    "names": ["飞机"]
}, {
    "id": "20315973151",
    "names": ["汽车"]
}, {
    "id": "402139522",
    "names": ["共享单车"]
}, {
    "id": "175369643585",
    "names": ["地铁"]
}, {
    "id": "175369644826",
    "names": ["出租", "打的", "打的士", "出租车", "打出租车", "滴滴打车", "滴滴"]
}, {
    "id": "175369643587",
    "names": ["火车"]
}, {
    "id": "175369643588",
    "names": ["公交"]
}, {
    "id": "17777963283",
    "names": ["交通其它"]
}, {
    "id": "175369643909",
    "names": ["书刊"]
}, {
    "id": "175669278084",
    "names": ["文具"]
}, {
    "id": "50524915741",
    "names": ["教材费"]
}, {
    "id": "50524915740",
    "names": ["学费"]
}, {
    "id": "50524915743",
    "names": ["餐饮费"]
}, {
    "id": "50524915744",
    "names": ["活动费"]
}, {
    "id": "175369644445",
    "names": ["教育其它"]
}, {
    "id": "210549992",
    "names": ["保健品"]
}, {
    "id": "1756691226949",
    "names": ["护肤"]
}, {
    "id": "175369644203",
    "names": ["美发"]
}, {
    "id": "175369644206",
    "names": ["医药"]
}, {
    "id": "175369644280",
    "names": ["美容"]
}, {
    "id": "175369644746",
    "names": ["健身"]
}, {
    "id": "1765292342337",
    "names": ["保健其它"]
}, {
    "id": "342019154",
    "names": ["玩具"]
}, {
    "id": "175369644837",
    "names": ["电影"]
}, {
    "id": "2233191439377",
    "names": ["门票"]
}, {
    "id": "175369644835",
    "names": ["娱乐其它"]
}, {
    "id": "2512296210",
    "names": ["送用"]
}, {
    "id": "332579318",
    "names": ["送医药费"]
}, {
    "id": "20455976315",
    "names": ["送吃"]
}, {
    "id": "20455976316",
    "names": ["送穿"]
}, {
    "id": "20455976317",
    "names": ["送住"]
}, {
    "id": "20455976310",
    "names": ["送行"]
}, {
    "id": "20455976348",
    "names": ["送玩"]
}, {
    "id": "175369644593",
    "names": ["送礼"]
}, {
    "id": "204019290023",
    "names": ["送红包"]
}, {
    "id": "175369644832",
    "names": ["其它人情支出"]
}, {
    "id": "175369644024",
    "names": ["烂账"]
}, {
    "id": "175369644036",
    "names": ["各种杂费"]
}, {
    "id": "175369648954",
    "names": ["偿还利息"]
}, {
    "id": "243639333906",
    "names": ["刷卡手续费"]
}, {
    "id": "3102391134",
    "names": ["兑换损失"]
}, {
    "id": "3662790",
    "names": ["分类有误"]
}, {
    "id": "37647927",
    "names": ["遗失"]
}, {
    "id": "404449695",
    "names": ["分期手续费"]
}, {
    "id": "40550951",
    "names": ["VIP费用"]
}, {
    "id": "175369645269",
    "names": ["其它支出"]
}, {
    "id": "25211921845",
    "names": ["实物礼做帐专用"]
}, {
    "id": "1753694105445",
    "names": ["域名"]
}, {
    "id": "346449534",
    "names": ["管理费"]
}, {
    "id": "346449535",
    "names": ["手续费"]
}, {
    "id": "346449537",
    "names": ["服务费"]
}, {
    "id": "42715969",
    "names": ["亏损"]
}, {
    "id": "346449541",
    "names": ["钱宝费"]
}, {
    "id": "346229119",
    "names": ["健康险"]
}, {
    "id": "351339164",
    "names": ["寿险"]
}, {
    "id": "351339165",
    "names": ["意外险"]
}, /*收入分类*/
{
    "names": ["管吃", "包吃"],
    "id": "373639211"
}, {
    "names": ["管住", "包住"],
    "id": "373639212"
}, {
    "names": ["管喝", "包喝"],
    "id": "373639213"
}, {
    "names": ["管玩", "包玩"],
    "id": "373639214"
}, {
    "names": ["管用", "包用"],
    "id": "373639215"
}, {
    "names": ["管穿", "包穿"],
    "id": "466549337"
}, {
    "names": ["管行", "包行"],
    "id": "466549338"
}, {
    "names": ["管其它", "其它人情收入", "包其它"],
    "id": "4430791"
}, {
    "names": ["钱宝网"],
    "id": "20515976212"
}, {
    "names": ["钱宝券"],
    "id": "3102391133"
}, {
    "names": ["余额宝"],
    "id": "1770193156370"
}, {
    "names": ["利息"],
    "id": "175369647418"
}, {
    "names": ["医保"],
    "id": "24307933278"
}, {
    "names": ["公积金"],
    "id": "3013691563"
}, {
    "names": ["工资"],
    "id": "175369646894"
}, {
    "names": ["报销"],
    "id": "175369646967"
}, {
    "names": ["补助"],
    "id": "20036989148"
}, {
    "names": ["福利"],
    "id": "176249813595"
}, {
    "names": ["职业奖金"],
    "id": "17763942158"
}, {
    "names": ["老爸多打款"],
    "id": "324749281"
}, {
    "names": ["网赚"],
    "id": "376209235"
}, {
    "names": ["淘金币"],
    "id": "2001693945"
}, {
    "names": ["集分宝"],
    "id": "1770193159158"
}, {
    "names": ["各种积分"],
    "id": "20636913621"
}, {
    "names": ["各种促销"],
    "id": "2067296245"
}, {
    "names": ["优惠"],
    "id": "20042968674"
}, {
    "names": ["中奖"],
    "id": "20651926820"
}, {
    "names": ["返利"],
    "id": "1756391736476"
}, {
    "names": ["其它收入"],
    "id": "175529141386"
}, {
    "names": ["意外来财"],
    "id": "175369646821"
}, {
    "names": ["变卖"],
    "id": "20515976124"
}, {
    "names": ["奖金"],
    "id": "175369647057"
}, {
    "names": ["对账"],
    "id": "175369647163"
}, {
    "names": ["收红包"],
    "id": "175369647242"
}, {
    "names": ["补偿", "赔偿"],
    "id": "43226943"
}];
//========================================================================
window.Ye_AccountMap = [{
    "id": "15416986540",
    "names": ["DM现金", "现金", "梅现金", "冬梅现金"]
}, {
    "id": "5507492063",
    "names": ["借给大满", ""]
}, {
    "id": "244709297",
    "names": ["LM现金", "老妈现金"]
}, {
    "id": "15416986553",
    "names": ["YE现金", "也现金"]
}, {
    "id": "226209467",
    "names": ["DM浦发卡", "冬梅浦发", "DM浦发", "冬梅浦发卡"]
}, {
    "id": "15416986547",
    "names": ["YE建行卡", "YE建行", "也建行", "也建行卡", "也建设", "也建设卡", "YE建设", "YE建设卡"]
}, {
    "id": "15416986551",
    "names": ["YE农行卡", "也农行", "也农业", "YE农行", "YE农业", "YE农业卡", "也农业卡"]
}, {
    "id": "15416986572",
    "names": ["DM工商卡", "冬梅工商", "冬梅工商卡", "DM工商"]
}, {
    "id": "23707977",
    "names": ["YE农商卡", "也农商", "也农商卡"]
}, {
    "id": "270439375",
    "names": ["DM信用社卡", "DM信用社", "冬梅信用社", "冬梅信用社卡"]
}, {
    "id": "31010911174",
    "names": ["YE信用社", "也信用社"]
}, {
    "id": "352709193",
    "names": ["每日优鲜"]
}, {
    "id": "15416986541",
    "names": ["YE支付宝", "支付宝", "也支付宝"]
}, {
    "id": "244709340",
    "names": ["YE余额宝", "余额宝", "也余额宝"]
}, {
    "id": "15722972730",
    "names": ["钱宝网", "钱宝"]
}, {
    "id": "264209327",
    "names": ["钱宝券", "宝券"]
}, {
    "id": "402359112",
    "names": ["话费余额-3115", "也话费"]
}, {
    "id": "402359113",
    "names": ["话费余额-0114", "冬梅话费", "梅话费"]
}, {
    "id": "320459267",
    "names": ["YE微信零钱", "也微信", "也微信零钱"]
}, {
    "id": "2202191071",
    "names": ["即付宝"]
}, {
    "id": "34524961",
    "names": ["DM微信零钱", "冬梅微信", "DM微信"]
}, {
    "id": "361159102",
    "names": ["借老爸的款", "借老爸"]
}, {
    "id": "244709301",
    "names": ["借老妈的款", "借老妈", "借老妈款", "借老妈钱"]
}, {
    "id": "320459187",
    "names": ["借老姐的款", "借老姐"]
}, {
    "id": "37116945",
    "names": ["借梅三姐的钱", "借梅三姐"]
}, {
    "id": "4021195",
    "names": ["京东白条"]
}, {
    "id": "5443593951",
    "names": ["平安白条", "平安白条卡"]
}, {
    "id": "21666914141",
    "names": ["平安储蓄卡", "平安储蓄", "平安银行", "平安银行卡"]
}, {
    "id": "2730294",
    "names": ["网商贷"]
}, {
    "id": "276529215",
    "names": ["京东小金库", "京东金库"]
}, {
    "id": "2730295",
    "names": ["京东金条"]
}, {
    "id": "15416986603",
    "names": ["各种借款"]
}, {
    "id": "2610793",
    "names": ["YE兴业卡", "也兴业", "YE兴业"]
}, {
    "id": "56047910843",
    "names": ["冬梅兴业卡", "冬梅兴业", "梅兴业", "梅兴业卡", "DM兴业"]
}, {
    "id": "242159702",
    "names": ["DM沃尔玛金卡", "冬梅沃尔玛", "DM沃尔玛", "冬梅交通", "冬梅交行", "冬梅交通卡", "DM交通卡"]
}, {
    "id": "4401499473",
    "names": ["DM招商天猫", "冬梅招商天猫", "冬梅招商天猫", "冬梅招商", "冬梅招行", "梅招商", "梅招行"]
}, {
    "id": "15442987765",
    "names": ["YE招商双卡", "也招商", "也招行"]
}, {
    "id": "154469222205",
    "names": ["YE沃尔玛卡", "也沃尔玛", "也交通", "也交通卡", "YE交通卡", "也交行"]
}, {
    "id": "15654917756",
    "names": ["各种暂付金", "暂付金", "暂付", "各种暂付"]
}, {
    "id": "27167957",
    "names": ["各种银行"]
}, {
    "id": "15416986580",
    "names": ["各种债权", "债权"]
}, {
    "id": "27173940",
    "names": ["借给老爸"]
}, {
    "id": "255369450",
    "names": ["YE公积金", "也公积金"]
}, {
    "id": "32537932",
    "names": ["DM公积金", "冬梅公积金"]
}, {
    "id": "157229130311",
    "names": ["被冻资金", "各种被冻", "各种冻结"]
}, {
    "id": "27173941",
    "names": ["YEGSQK", "公司欠款", "借给公司"]
}, {
    "id": "34524963",
    "names": ["借给老姐", "借给姐"]
}, {
    "id": "5403594026",
    "names": ["借给梅三姐", "借给冬梅三姐", "借给DM三姐"]
}, {
    "id": "27173942",
    "names": ["借给梅哥"]
}, {
    "id": "244709476",
    "names": ["小微时贷-余额"]
}, {
    "id": "244709474",
    "names": ["小微时贷-定期"]
}, {
    "id": "24575940",
    "names": ["长运网-余额"]
}, {
    "id": "24575941",
    "names": ["长运网-定期"]
}, {
    "id": "251339108",
    "names": ["58车贷-余额"]
}, {
    "id": "251339110",
    "names": ["58车贷-定期"]
}, {
    "id": "262519236",
    "names": ["支付宝-轻定投"]
}, {
    "id": "22015938003",
    "names": ["其它理财", "其他理财"]
}, {
    "id": "230509462210",
    "names": ["其它理财-余额", "其它理财余额", "其他理财余额"]
}, {
    "id": "205059390245",
    "names": ["也花呗", "花呗", "YE花呗"]
}, {
    "id": "4716292197",
    "names": ["DM 花呗", "DM花呗", "冬梅花呗", "梅花呗"]
}, {
    "id": "5134293831",
    "names": ["也龙卡", "建行龙卡", "龙卡", "建行信用卡"]
}, {
    "id": "53747911844",
    "names": ["现金价值", "保单价值", "保险价值", "保单现金价值", "保险现金价值"]
}, {
    "id": "53747912458",
    "names": ["冬梅支付宝", "DM支付宝", "梅支付宝", "M支付宝"]
}, {
    "id": "5507494591",
    "names": ["话费电信", "电信流量卡", "电信卡", "DXK"]
}, {
    "id": "620359407",
    "names": ["话费联通", "联通流量卡", "也联通"]
}, {
    "id": "55275916328",
    "names": ["也民生", "民生银行", "民生", "民生银行卡"]
}, {
    "id": "6103493938",
    "names": ["公园海德"]
}, {
    "id": "6072397569",
    "names": ["上海银行"]
}, {
    "id": "6402295041",
    "names": ["上海银行信用卡","上行信用卡","上银信用卡"]
}, {
    "id": "6103591827",
    "names": ["也光大" , "光大银行"]
}, {
    "id": "61210912313",
    "names": ["冬梅中信", "DM中信", "DM中信银行", "冬梅中信银行", "冬梅中信信用卡", "DM中信信用卡"]
}, {
    "id": "6402295043",
    "names": ["冬梅农业", "DM农业", "DM农业银行", "冬梅农业银行", "冬梅农行卡", "DM农行卡", "冬梅农行", "DM农行"]
}];